﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/MasterPages/PrimaryMaster.Master" AutoEventWireup="true" CodeBehind="ViewOrganizationsTypes.aspx.cs" Inherits="ArchivingDataWebForms.Pages.Organization.WebFormOrganizationsTypesaspx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="AdvancedRadGridResults">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="AdvancedRadGridResults" UpdatePanelCssClass=""></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>

    <div style="padding: 50px;">
        <ul class="UlLayout">
            <li class="paddingTop">
                <telerikHelper:AdvancedRadGrid ID="AdvancedRadGridResults" runat="server" SkinID="AdvancedRadGridArDefault" CellSpacing="0" GridLines="None" AutoGenerateColumns="False" ShowGroupPanel="True"
                    OnNeedDataSource="AdvancedRadGridResults_NeedDataSource" OnItemCommand="AdvancedRadGridResults_ItemCommand" OnInsertCommand="AdvancedRadGridResults_InsertCommand" 
                    OnItemDataBound="AdvancedRadGridResults_ItemDataBound" OnUpdateCommand="AdvancedRadGridResults_UpdateCommand" OnDeleteCommand="AdvancedRadGridResults_DeleteCommand" >
                    <MasterTableView DataKeyNames="Type_Of_Organization_ID">
                        <Columns>
                            <telerik:GridBoundColumn DataField="Type_Of_Organization_ID" DataType="System.Int64" UniqueName="Type_Of_Organization_ID" HeaderText="الرقم" Display="False" ReadOnly="true"  AutoPostBackOnFilter="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Type_Of_Organization_Number" DataType="System.String" UniqueName="Type_Of_Organization_Number" HeaderText="الترميز" Display="true" EditFormColumnIndex="0"  AutoPostBackOnFilter="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Type_Of_Organization_NameAR" DataType="System.String" UniqueName="Type_Of_Organization_NameAR" HeaderText="الاسم" Display="true" EditFormColumnIndex="0"  AutoPostBackOnFilter="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Type_Of_Organization_Order" DataType="System.Int64" UniqueName="Type_Of_Organization_Order" HeaderText="الترتيب" Display="true" EditFormColumnIndex="0"  AutoPostBackOnFilter="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridEditCommandColumn UniqueName="EditColumn" ButtonType="ImageButton" CancelText="الغاء" EditText="تحرير" UpdateText="حفظ">
                            </telerik:GridEditCommandColumn>
                            <telerik:GridButtonColumn UniqueName="DeleteColumn" ButtonType="ImageButton" CommandName="Delete" ConfirmDialogHeight="40px" ConfirmDialogType="RadWindow" ConfirmText="هل انت متاكد من عملية الحذف ؟" ConfirmTitle="حذف" Text="حذف">
                            </telerik:GridButtonColumn>
                            <telerik:GridRowIndicatorColumn Resizable="True" Visible="true">
                            </telerik:GridRowIndicatorColumn>
                        </Columns>
                        <EditFormSettings>
                            <FormTemplate>
                                <ul class="UlLayout" style="margin-right: 20px;">
                                    <li class="paddingTop">الترميز</li>
                                    <li>
                                        <telerik:RadTextBox ID="RadTextBoxPCode" runat="server" SkinID="RadTextBoxHalf" Text='<%# Bind("Type_Of_Organization_Number") %>'></telerik:RadTextBox>
                                    </li>
                                    <li class="paddingTop">الاسم</li>
                                    <li>
                                        <telerik:RadTextBox ID="RadTextBoxPName" runat="server" Text='<%# Bind("Type_Of_Organization_NameAR") %>'></telerik:RadTextBox>
                                    </li>
                                    <li class="paddingTop">الترتيب</li>
                                    <li>
                                        <telerik:RadNumericTextBox ID="RadNumericTextBoxOrder" runat="server"  Text='<%# Bind("Type_Of_Organization_Order") %>'></telerik:RadNumericTextBox>
                                    </li>
                                    <li class="paddingTop">
                                        <div>
                                            <asp:Button ID="ButtonUpdate" Text='حفظ' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'></asp:Button>
                                            <asp:Button ID="ButtonCancel" Text="الغاء" runat="server" CausesValidation="False" CommandName="Cancel" />
                                        </div>
                                    </li>
                                </ul>
                            </FormTemplate>
                        </EditFormSettings>
                    </MasterTableView>
                </telerikHelper:AdvancedRadGrid>
            </li>
        </ul>
    </div>



</asp:Content>
